<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>信息展示</title>
</head>
<body>
<h1 th:align="center">学生信息展示</h1>
<table th:align="center" style="background-color: lightsteelblue;padding: 100px">
    <tr>
        <td>姓名</td>
        <td><span th:text="${StudentInfo.name}"/></td>
    </tr>
    <tr>
        <td>学号</td>
        <td><span th:text="${StudentInfo.id}"/></td>
    </tr>
    <tr>
        <td>年级</td>
        <td><span th:text="${StudentInfo.grade}"/></td>
    </tr>
    <tr>
        <td>专业</td>
        <td><span th:text="${StudentInfo.profession}"/></td>
    </tr>
    <tr>
        <td>学院</td>
        <td><span th:text="${StudentInfo.college}"/></td>
    </tr>
    <tr>
        <td>已选课程</td>
        <div th:each="course:${courses}">
            <td><span th:text="${course.name}"/></td>
        </div>
    </tr>

</table>
<br>
<form method="post" th:align="center" th:action="@{/logout}">
    <input type="submit" value="Logout">
</form>

</body>
</html>